<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!-- 1.导入标签库 -->
<%@taglib uri="http://www.xsdz.com/mytaglib" prefix="xsdz"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>自定义标签－date</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">


</head>

<body>
	<br>
	<!-- 2.使用标签 -->
	<%
    
    List<String> list=new ArrayList();
    list.add(0, "a");
    list.add(1, "b");
    list.add(2, "c");
    list.add(3, "d");
    list.add(4, "e");
    list.add(5, "f");
    
    pageContext.setAttribute("list", list);
    
     %>
	<table bgcolor="#aaaadd" border="1" width="30">

		<xsdz:iterator item="item" collection="list">
			<tr>

				<td>${pageScope.item}</td>

			</tr>>
	
	</xsdz:iterator>

	</table>

</body>
</html>
